package com.roc.jpamysql.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@TableName("t1")
@Accessors(chain = true)
public class T1 implements Serializable {

    @TableId(type = IdType.AUTO,value = "id")
    private Integer id;

    @TableField(value = "a")
    private Integer a;
}
